﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="backstage_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站管理员登陆</title>
    <link href="css/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrap">
        <span class="topbg"></span>
        <!--头部结束-->
        <div class="container">
            <div class="iner_contain">
                <div class="left">
                    <%Response.Write(BasicBind()); %>
                </div>
                <!--左边含logo,客服结束-->
                <form id="form1" runat="server">
                    <div class="rightform">
                        <h2>
                            后台管理</h2>
                        <p>
                            <label for="txtLoginName">
                                登录帐号：</label>
                            <input id="txtLoginName" name="username" value="" runat="server" enableviewstate="false" />
                            <asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ErrorMessage="请输入登录帐号"
                                ControlToValidate="txtLoginName" Display="Dynamic" ValidationGroup="userLogin"></asp:RequiredFieldValidator></p>
                        <p>
                            <label for="txtPwssword">
                                登录密码：</label>
                            <input id="txtPwssword" type="password" runat="server" enableviewstate="false" name="password" />
                            <img alt="" src="images/luck.gif" width="19" height="18" />
                            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPwssword"
                                Display="Dynamic" ErrorMessage="请输入密码" ValidationGroup="userLogin"></asp:RequiredFieldValidator><asp:CustomValidator
                                    ID="cvLoginNameAndPassword" runat="server" ControlToValidate="txtLoginName" Display="Dynamic"
                                    ErrorMessage="用户名或密码错误" OnServerValidate="cvLoginNameAndPassword_ServerValidate"
                                    ValidationGroup="userLogin"></asp:CustomValidator></p>
                        <p>
                            <label for="txtCode">
                                验 证 码：</label>
                            <input id="txtCode" name="verifycode" type="text" value="" runat="server" enableviewstate="false"
                                maxlength="4" autocomplete="off" />
                            <img id="imgCheckCode" src="/code.aspx?t=adminLogin" alt="看不清楚,换一张" onclick="this.src = '/code.aspx?a=' + Math.random();+'&t=adminLogin'" />
                            <asp:RequiredFieldValidator ID="rfvCode" runat="server" ControlToValidate="txtCode"
                                ErrorMessage="请输入验证码" ValidationGroup="userLogin" Display="Dynamic"></asp:RequiredFieldValidator><asp:CustomValidator
                                    ID="cvCode" runat="server" ControlToValidate="txtCode" ErrorMessage="验证码错误" OnServerValidate="cvCode_ServerValidate"
                                    ValidationGroup="userLogin" Display="Dynamic"></asp:CustomValidator></p>
                        <p>
                            <label>
                                语言版本：</label>
                            <select id="selectLanguageVersion" name="languageVersion">
                                <%Response.Write(GetLanguage()); %>
                            </select>
                        </p>
                        <span>
                            <asp:Button ID="btnLogin" CssClass="button" runat="server" Text="登  录" OnClick="btnLogin_Click"
                                ValidationGroup="userLogin" />
                            <input id="Reset1" type="reset" class="button" value="取  消" />
                        </span>
                    </div>
                </form>
                <!--右边登陆框结束-->
                <span class="clear"></span>
            </div>
        </div>
        <!--中间内容结束-->
        <%Response.Write(FooterBind()); %>
    </div>
    <!--enf of wrap (DOCTYPE)-->
</body>
</html>
